/*
 * File: J_la_T05_q5.c
 *
 * MATLAB Coder version            : 5.2
 * C/C++ source code generated on  : 23-Apr-2025 08:39:37
 */

/* Include Files */
#include "J_la_T05_q5.h"
#include <math.h>
#include <string.h>

/* Function Definitions */
/*
 * J_LA_T05_Q5
 *     U55 = J_LA_T05_Q5(IN1,IN2)
 *
 * Arguments    : const double in1[5]
 *                const double in2[5]
 *                double u55[16]
 * Return Type  : void
 */
void J_la_T05_q5(const double in1[5], const double in2[5], double u55[16])
{
  double t10;
  double t108;
  double t109;
  double t11;
  double t12;
  double t13;
  double t14;
  double t15;
  double t16;
  double t17;
  double t18;
  double t19;
  double t2;
  double t20;
  double t21;
  double t22;
  double t23;
  double t24;
  double t25;
  double t3;
  double t4;
  double t5;
  double t51;
  double t52;
  double t53;
  double t54;
  double t6;
  double t68;
  double t69;
  double t7;
  double t71;
  double t8;
  double t9;
  /*     This function was generated by the Symbolic Math Toolbox version 8.7.
   */
  /*     09-Apr-2025 18:11:48 */
  t2 = cos(in2[0]);
  t3 = cos(in2[1]);
  t4 = cos(in2[2]);
  t5 = cos(in2[3]);
  t6 = cos(in2[4]);
  t7 = cos(in1[0]);
  t8 = cos(in1[1]);
  t9 = cos(in1[2]);
  t10 = cos(in1[3]);
  t11 = cos(in1[4]);
  t12 = sin(in2[0]);
  t13 = sin(in2[1]);
  t14 = sin(in2[2]);
  t15 = sin(in2[3]);
  t16 = sin(in2[4]);
  t17 = sin(in1[0]);
  t18 = sin(in1[1]);
  t19 = sin(in1[2]);
  t20 = sin(in1[3]);
  t21 = sin(in1[4]);
  t22 = t7 * t8;
  t23 = t7 * t18;
  t24 = t2 * t3;
  t25 = t3 * t12;
  t51 = t25 + t2 * t7 * t13;
  t52 = t23 + t3 * t8 * t17;
  t53 = t24 + -(t7 * t12 * t13);
  t54 = t22 + -(t3 * t17 * t18);
  t7 = t8 * t12;
  t69 = (t2 * t13 * t18 + t7 * t17) + t23 * t25;
  t8 *= t2;
  t71 = (t8 * t13 + t22 * t25) + -(t12 * t17 * t18);
  t25 = (t8 * t17 + t23 * t24) + -(t12 * t13 * t18);
  t68 = t4 * t13 * t17 + t14 * t52;
  t18 = (t7 * t13 + t2 * t17 * t18) + -(t22 * t24);
  t3 = t4 * t9;
  t2 = (-(t9 * t13 * t14 * t17) + t3 * t52) + t19 * t54;
  t7 = t4 * t19;
  t12 = (t13 * t14 * t17 * t19 + t9 * t54) + -(t7 * t52);
  t23 = t14 * t19;
  t109 = (t23 * t53 + t9 * t69) + t7 * t71;
  t8 = t9 * t14;
  t108 = (t8 * t51 + t19 * t25) + t3 * t18;
  t25 = (t23 * t51 + -(t9 * t25)) + t7 * t18;
  t52 = (t8 * t53 + -(t19 * t69)) + t3 * t71;
  t3 = t4 * t51 + -(t14 * t18);
  t13 = t5 * t68 + t15 * t2;
  t24 = t5 * t10;
  t54 = t10 * t15;
  t17 = (-(t54 * t68) + t20 * t12) + t24 * t2;
  t8 = t15 * t20;
  t18 = t5 * t20;
  t22 = (t8 * t68 + t10 * t12) + -(t18 * t2);
  t7 = t4 * t53 - t14 * t71;
  t2 = (t8 * t7 + t10 * t109) + t18 * t52;
  t12 = (t8 * t3 + t18 * t108) + t10 * t25;
  t8 = (t54 * t3 + t24 * t108) + -(t20 * t25);
  t18 = t6 * t11;
  t25 = t11 * t16;
  u55[0] = (-t21 * t22 + t25 * t13) - t18 * t17;
  t23 = t5 * t3 - t15 * t108;
  u55[1] = (t21 * t12 - t18 * t8) - t25 * t23;
  t3 = t15 * t52 - t5 * t7;
  t7 = (-(t20 * t109) + t24 * t52) + t54 * t7;
  u55[2] = (-t21 * t2 - t25 * t3) + t18 * t7;
  u55[3] = 0.0;
  t18 = t6 * t21;
  t25 = t16 * t21;
  u55[4] = (-t11 * t22 - t25 * t13) + t18 * t17;
  u55[5] = (t11 * t12 + t18 * t8) + t25 * t23;
  u55[6] = (-t11 * t2 + t25 * t3) - t18 * t7;
  memset(&u55[7], 0, 9U * sizeof(double));
}

/*
 * File trailer for J_la_T05_q5.c
 *
 * [EOF]
 */
